﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuddHa.Wechat.Mini
{
    using Responses;
    public interface IWechatDispatch
    {
        Task<ResponseGetAccessToken> GetAccessToken(string appId, string secret);

        Task<ResponseGetWxACode> GetWxACode(string accessToken, string sceneStr, string page, string envVersion, bool checkPath);

        Task<ResponseWechatJscode2Session> WechatJscode2Session(string code, string appId, string appSecret, string grantType = "authorization_code");

        ResponseAuthInfo AuthInfo(string sessionKey, string iv, string encrypteData);

        ResponseGetMoboilePhone GetWxMobilePhone(string sessionKey, string iv, string encrypteData);
    }
}
